package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hulk.ratel.persistence.entity.SuperEntity;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_dict_code")
public class DictCode<T extends Model<?>> extends Model<T> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "code_id", type = IdType.ID_WORKER)
    private String codeId;

    @TableField("dict_id")
    private String dictId;

    @TableField("code_value")
    private String codeValue;

    @TableField("code_desc")
    private String codeDesc;

    /**
     * Y-启用
            N-停用
     */
    @TableField("code_flag")
    private String codeFlag;

    @TableField("priority")
    private Integer priority;

    @TableField("input_by")
    private String inputBy;

    @TableField("input_time")
    private LocalDate inputTime;

    @TableField("updated_by")
    private String updatedBy;





    @TableField("rsv1")
    private String rsv1;

    @TableField("rsv2")
    private String rsv2;


    public static final String CODE_ID = "code_id";

    public static final String DICT_ID = "dict_id";

    public static final String CODE_VALUE = "code_value";

    public static final String CODE_DESC = "code_desc";

    public static final String CODE_FLAG = "code_flag";

    public static final String PRIORITY = "priority";

    public static final String INPUT_BY = "input_by";

    public static final String INPUT_TIME = "input_time";

    public static final String UPDATED_BY = "updated_by";

    public static final String UPDATED_TIME = "updated_time";

    public static final String TENANT_ID = "tenant_id";

    public static final String LOCK_VERSION = "lock_version";

    public static final String RSV1 = "rsv1";

    public static final String RSV2 = "rsv2";

}
